package com.smedi.ismedi.constructionproject.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-21 9:33
 */
@Data
@Accessors(chain = true)
public class BidSectionRequest implements Serializable {
    @ApiModelProperty(value = "标段id")
    private Long bidSectionId;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;

    @ApiModelProperty(value = "标段编码")
    @Size(max = 50, message = "最大50字符！")
    private String bidSectionCode;

    @ApiModelProperty(value = "标段简称", required = true)
    @NotBlank(message = "标段简称为空！")
    @Size(max = 20, message = "最大20字符！")
    private String bidSectionShortName;

    @ApiModelProperty(value = "标段名称", required = true)
    @NotBlank(message = "标段名称为空！")
    @Size(max = 50, message = "最大50字符！")
    private String bidSectionName;

    @ApiModelProperty(value = "标段配置", required = true)
    @NotEmpty(message = "标段配置为空！")
    private List<BidSectionConfigRequest> bidSectionConfigs = new ArrayList<>();
}
